package com.cntcdt.api.main;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;

import com.cntcdt.api.resources.test.TestApi;
import com.cntcdt.api.resources.test.TestGetUserInfo;

public class QinQinClientApplication extends Application {

	public Restlet createInboundRoot() {
		Router router = new Router(getContext());
		this.oauth(router);
		return router;
	}

	private void oauth(Router router) {
		// 个人测试
		router.attach("/testApi", TestApi.class);
		router.attach("/TestGetUserInfo", TestGetUserInfo.class);

	}
}
